# coding: utf-8
# @Author : lryself
# @Date : 2020/10/29 17:27
# @Software: PyCharm
from flask import jsonify
from flask_restplus import Resource

from . import main_rest_api, back_model
from ..service.informationCodeManager import InformationCodeManager


class IndexResource(Resource):
    @main_rest_api.doc(description="登录账号")
    @main_rest_api.marshal_with(back_model, skip_none=True)
    def get(self):
        result_dict = InformationCodeManager.get_parentCodeID_0_codeList()

        return result_dict
